package com.youlai.boot.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Schema(description = "板材表单对象")
@Data
public class PlateForm {
    @Schema(description="板材ID")
    private Long id;

    @Schema(description="板材名称")
    @NotBlank(message = "板材名称不能为空")
    private String name;

    @Schema(description="板材编码")
    @NotBlank(message = "板材编码不能为空")
    private String code;

    @Schema(description="排序")
    private Integer sort;

    @Schema(description="板材图片")
    private String image;

    @Schema(description="板材状态(1-正常；0-停用)")
    @Range(max = 1, min = 0, message = "板材状态不正确")
    private Integer status;

    @Schema(description="数据权限")
    private Integer dataScope;
}
